package com.ccjq.jq167.service.impl;

import com.ccjq.jq167.dao.impl.dao_impl;
import com.ccjq.jq167.po.StudentPo;
import com.ccjq.jq167.service.student_service;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: student
 * @description: student_service实现类
 * @author: Danst
 * @create: 2019-03-29 13:51
 * @vversion:1.0
 **/
public class service_impl implements student_service {


    public List<StudentPo> select() {
        List<StudentPo> list = new ArrayList<StudentPo>();
        dao_impl dao = new dao_impl();
        list = dao.select();
        return list;
    }

    public int insert(StudentPo student) {
        dao_impl dao = new dao_impl();
        return dao.insert(student);
    }

    public int update(StudentPo student) {
        dao_impl dao = new dao_impl();
        return dao.update(student);
    }

    public int delete(StudentPo student) {
        dao_impl dao = new dao_impl();
        return dao.delete(student);
    }

    public StudentPo chaxunzzz(StudentPo student) {
        dao_impl dao = new dao_impl();
        StudentPo u = dao.chaxunzzz(student);
        return u;
    }
}
